#ifndef DATAFILE_H_
#define DATAFILE_H_

#include "System\F2806x_Device.h"

struct SDataFile
{
	// Motor1 States
	//inputs
	float M1_IFdbkUIN;
	float M1_PositionIN;
	float M1_OmegaIN; 
	Int32 M1_ModeIN;
	float M1_InRefIN;
	Int32 M1_LockedIN;
	// outputs
	Int32 M1_EnabledOUT;
	Int32 M1_StateOUT;
	float M1_DutyOUT;
	
	// Motor2 States
	//inputs
	float M2_IFdbkUIN;
	float M2_PositionIN;
	float M2_OmegaIN; 
	Int32 M2_ModeIN;
	float M2_InRefIN;
	Int32 M2_LockedIN;
	// outputs
	Int32 M2_EnabledOUT;
	Int32 M2_StateOUT;
	float M2_DutyOUT;

	// All
	Int32 M12_Reset;
	
	// Status
long Counter;
	float INTLoopTimeUS;
	float INTLoopTimeUSMAX;
	float LoopTimeMS; // [ms]
	float LoopTimeMSMAX; // [ms]
	float64 MissionTime; // [s]
};

#endif /*DATAFILE_H_*/
